package com.itheima.homework.Employee_manager;

public class Test {
    public static void main(String[] args) {
        // 经理   1
        Manager manager1 = new Manager();
        manager1.setName("经理1");
        manager1.setAge(23);
        manager1.setSalary(3000);

        manager1.info();

        // 经理   2
        Manager manager2 = new Manager();
        manager2.setName("经理2");
        manager2.setAge(34);
        manager2.setSalary(4000);

        manager2.info();


        // 工程师   1
        Engineer engineer1 = new Engineer();
        engineer1.setName("工程师1");
        engineer1.setAge(25);
        engineer1.setSalary(3000);

        engineer1.info();

        // 工程师   2
        Engineer engineer2 = new Engineer();
        engineer2.setName("工程师2");
        engineer2.setAge(45);
        engineer2.setSalary(4000);

        engineer2.info();

        // 员工1
        Employee employee1 = new Employee();
        employee1.setName("员工1");
        employee1.setAge(34);
        employee1.setSalary(3000);

        employee1.info();

        // 员工2
        Employee employee2 = new Employee();
        employee2.setName("员工2");
        employee2.setAge(43);
        employee2.setSalary(3000);

        employee2.info();

        System.out.println("当前企业共有 " + Employee.getCount() + " 名员工");

    }
}
